package com.jishulianmeng.util;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class SessionUtil extends ActionSupport implements SessionAware,ServletRequestAware,ServletResponseAware{
	private Map<String, Object> sessionMap=null;
	private HttpServletRequest requst=null;
	private HttpServletResponse response=null;
	@Override
	public void setSession(Map<String, Object> sessionMap) {
		// TODO Auto-generated method stub
		this.sessionMap=sessionMap;
	}
	public Map getSession(){
		return sessionMap;
	}
	@Override
	public void setServletRequest(HttpServletRequest requst) {
		// TODO Auto-generated method stub
		this.requst=requst;
		
	}
	@Override
	public void setServletResponse(HttpServletResponse response) {
		// TODO Auto-generated method stub
		this.response=response;
		
	}
	

}
